﻿using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

namespace Studio
{
	// Token: 0x0200057C RID: 1404
	public class VoicePlayNode : VoiceNode
	{
		// Token: 0x17000452 RID: 1106
		// (set) Token: 0x060023D1 RID: 9169 RVA: 0x000D768C File Offset: 0x000D588C
		public UnityAction addOnClickDelete
		{
			set
			{
				this.buttonDelete.onClick.AddListener(value);
			}
		}

		// Token: 0x17000453 RID: 1107
		// (get) Token: 0x060023D2 RID: 9170 RVA: 0x000D76A0 File Offset: 0x000D58A0
		private Image image
		{
			get
			{
				if (this.m_ImageButton == null)
				{
					this.m_ImageButton = this.m_Button.image;
				}
				return this.m_ImageButton;
			}
		}

		// Token: 0x17000454 RID: 1108
		// (get) Token: 0x060023D3 RID: 9171 RVA: 0x000D76CC File Offset: 0x000D58CC
		// (set) Token: 0x060023D4 RID: 9172 RVA: 0x000D76D4 File Offset: 0x000D58D4
		public bool select
		{
			get
			{
				return this.m_Select;
			}
			set
			{
				if (Utility.SetStruct<bool>(ref this.m_Select, value))
				{
					this.image.color = ((!this.m_Select) ? Color.white : Color.green);
				}
			}
		}

		// Token: 0x060023D5 RID: 9173 RVA: 0x000D770C File Offset: 0x000D590C
		public void Destroy()
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}

		// Token: 0x040024C0 RID: 9408
		[SerializeField]
		private Button buttonDelete;

		// Token: 0x040024C1 RID: 9409
		private Image m_ImageButton;

		// Token: 0x040024C2 RID: 9410
		private bool m_Select;
	}
}
